package com.rs.util;

import java.io.File;

import javafx.application.Application;
import javafx.stage.DirectoryChooser;
import javafx.stage.Stage;

public class Main extends Application {

	private File directory = null;

	public static void main(String[] args) {

		launch(args);

	}

	@Override
	public void start(Stage primaryStage) throws Exception {

		DirectoryChooser directoryChooser = new DirectoryChooser();
		directoryChooser.setTitle("Choose Folder");
		directory = directoryChooser.showDialog(new Stage());
		if (directory != null) {
			System.out.println(directory.getAbsolutePath());
		}
	}

	public File getFile() {
		return directory;
	}

}